﻿using Idlesoft.Utils;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace UtilsTests
{
    
    
    /// <summary>
    ///This is a test class for FileExtensionsTest and is intended
    ///to contain all FileExtensionsTest Unit Tests
    ///</summary>
	[TestClass()]
	public class FileExtensionsTest
	{


		private TestContext testContextInstance;

		/// <summary>
		///Gets or sets the test context which provides
		///information about and functionality for the current test run.
		///</summary>
		public TestContext TestContext
		{
			get
			{
				return testContextInstance;
			}
			set
			{
				testContextInstance = value;
			}
		}

		#region Additional test attributes
		// 
		//You can use the following additional attributes as you write your tests:
		//
		//Use ClassInitialize to run code before running the first test in the class
		//[ClassInitialize()]
		//public static void MyClassInitialize(TestContext testContext)
		//{
		//}
		//
		//Use ClassCleanup to run code after all tests in a class have run
		//[ClassCleanup()]
		//public static void MyClassCleanup()
		//{
		//}
		//
		//Use TestInitialize to run code before running each test
		//[TestInitialize()]
		//public void MyTestInitialize()
		//{
		//}
		//
		//Use TestCleanup to run code after each test has run
		//[TestCleanup()]
		//public void MyTestCleanup()
		//{
		//}
		//
		#endregion


		/// <summary>
		///A test for CopyFile
		///</summary>
		[TestMethod()]
		public void CopyFileTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			bool overwrite = false; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = FileExtensions.CopyFile(src, dst, overwrite);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for CopyFiles
		///</summary>
		[TestMethod()]
		public void CopyFilesTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			Func<string, bool> selector = null; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = FileExtensions.CopyFiles(src, dst, selector);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for CopyFiles
		///</summary>
		[TestMethod()]
		public void CopyFilesTest1()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			string pattern = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = FileExtensions.CopyFiles(src, dst, pattern, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for CreateFile
		///</summary>
		[TestMethod()]
		public void CreateFileTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			FileExtensions.CreateFile(path);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for CreateFile
		///</summary>
		[TestMethod()]
		public void CreateFileTest1()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			string ext = string.Empty; // TODO: Initialize to an appropriate value
			FileExtensions.CreateFile(path, ext);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for DeleteFile
		///</summary>
		[TestMethod()]
		public void DeleteFileTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = FileExtensions.DeleteFile(path);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for DeleteFiles
		///</summary>
		[TestMethod()]
		public void DeleteFilesTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			string pattern = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = FileExtensions.DeleteFiles(path, pattern, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for DeleteFiles
		///</summary>
		[TestMethod()]
		public void DeleteFilesTest1()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			Func<string, bool> selector = null; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = FileExtensions.DeleteFiles(path, selector);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for FileExists
		///</summary>
		[TestMethod()]
		public void FileExistsTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = FileExtensions.FileExists(path);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for FindFiles
		///</summary>
		[TestMethod()]
		public void FindFilesTest()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			Func<string, bool> selector = null; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = FileExtensions.FindFiles(path, selector);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for FindFiles
		///</summary>
		[TestMethod()]
		public void FindFilesTest1()
		{
			string path = string.Empty; // TODO: Initialize to an appropriate value
			string pattern = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = FileExtensions.FindFiles(path, pattern, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for HasExt
		///</summary>
		[TestMethod()]
		public void HasExtTest()
		{
			string file = string.Empty; // TODO: Initialize to an appropriate value
			string ext = string.Empty; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = FileExtensions.HasExt(file, ext);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for MoveFile
		///</summary>
		[TestMethod()]
		public void MoveFileTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			bool expected = false; // TODO: Initialize to an appropriate value
			bool actual;
			actual = FileExtensions.MoveFile(src, dst);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for MoveFiles
		///</summary>
		[TestMethod()]
		public void MoveFilesTest()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			Func<string, bool> selector = null; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = FileExtensions.MoveFiles(src, dst, selector);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for MoveFiles
		///</summary>
		[TestMethod()]
		public void MoveFilesTest1()
		{
			string src = string.Empty; // TODO: Initialize to an appropriate value
			string dst = string.Empty; // TODO: Initialize to an appropriate value
			string pattern = string.Empty; // TODO: Initialize to an appropriate value
			bool recursive = false; // TODO: Initialize to an appropriate value
			int expected = 0; // TODO: Initialize to an appropriate value
			int actual;
			actual = FileExtensions.MoveFiles(src, dst, pattern, recursive);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for ReadLines
		///</summary>
		[TestMethod()]
		public void ReadLinesTest()
		{
			string file = string.Empty; // TODO: Initialize to an appropriate value
			string[] expected = null; // TODO: Initialize to an appropriate value
			string[] actual;
			actual = FileExtensions.ReadLines(file);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for ReadText
		///</summary>
		[TestMethod()]
		public void ReadTextTest()
		{
			string file = string.Empty; // TODO: Initialize to an appropriate value
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			actual = FileExtensions.ReadText(file);
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}

		/// <summary>
		///A test for WriteLines
		///</summary>
		[TestMethod()]
		public void WriteLinesTest()
		{
			string[] lines = null; // TODO: Initialize to an appropriate value
			string file = string.Empty; // TODO: Initialize to an appropriate value
			FileExtensions.WriteLines(lines, file);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for WriteText
		///</summary>
		[TestMethod()]
		public void WriteTextTest()
		{
			string text = string.Empty; // TODO: Initialize to an appropriate value
			string file = string.Empty; // TODO: Initialize to an appropriate value
			FileExtensions.WriteText(text, file);
			Assert.Inconclusive("A method that does not return a value cannot be verified.");
		}

		/// <summary>
		///A test for file
		///</summary>
		[TestMethod()]
		public void fileTest()
		{
			string expected = string.Empty; // TODO: Initialize to an appropriate value
			string actual;
			FileExtensions.file = expected;
			actual = FileExtensions.file;
			Assert.AreEqual(expected, actual);
			Assert.Inconclusive("Verify the correctness of this test method.");
		}
	}
}
